<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>计算器</title>
</head>
<body>
    <p>整数1 <input type="text" id="num1"></p>
    <p>整数2 <input type="text" id="num2"></p>
    <p>
        <button id="add">相加</button><button>相减</button>
        <button id="">相乘</button><button>相除</button>
    </p>
    <p>结果为:<input type="text" id="result"></p>
</body>
</html>